require 'sidekiq/web'
require 'sidekiq-status'
Sidekiq.configure_server do |config|
  config.redis = { url: "redis://localhost:6379/12" }
  # accepts :expiration (optional)
  Sidekiq::Status.configure_server_middleware config, expiration: 7.day

  # accepts :expiration (optional)
  Sidekiq::Status.configure_client_middleware config, expiration: 7.day
end

Sidekiq.configure_client do |config|
  config.redis = { url: "redis://localhost:6379/12" }
  # accepts :expiration (optional)
  Sidekiq::Status.configure_client_middleware config, expiration: 7.day
end

Sidekiq::Web.set :session_secret, Rails.application.secret_key_base
